credit2: track residual from divisions done during accounting
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Mon, 4 Mar 2013 12:39:19 +0000 (13:39 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 4 Mar 2013 12:39:19 +0000 (13:39 +0100)
commitc0704a8a90d3219cbbc607f5b83cd4f60371a47e
treeba83d608188a9824c4a4e0d263a6e3192f16c078
parent8b3072a050a67405022f9e7911c37ccff9c0cdb5
credit2: track residual from divisions done during accounting

This should help with under-accounting of vCPU-s running for extremly
short periods of time, but becoming runnable again at a high frequency.

Don't bother subtracting the residual from the runtime, as it can only ever
add up to one nanosecond, and will end up being debited during the next
reset interval anyway.

Original-patch-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
xen/common/sched_credit2.c